import request from '@/utils/request'

// 查询企业党建列表
export function listFirmParty(query) {
  return request({
    url: '/firmParty/listByDto',
    method: 'get',
    params: query
  })
}

// 查询企业党建详细
export function getFirmParty(firmPartyId) {
  return request({
    url: '/firmParty/findById/' + firmPartyId,
    method: 'get'
  })
}

// 新增企业党建
export function addFirmParty(data) {
  return request({
    url: '/firmParty/insert',
    method: 'post',
    data: data
  })
}

// 修改企业党建
export function updateFirmParty(data) {
  return request({
    url: '/firmParty/updateById',
    method: 'put',
    data: data
  })
}

// 删除企业党建
export function delFirmParty(firmPartyId) {
  return request({
    url: '/firmParty/deleteByIds/' + firmPartyId,
    method: 'delete'
  })
}